#ifndef INC_UNI_NLU_CONTENT_H_
#define INC_UNI_NLU_CONTENT_H_

typedef struct {
  uni_u32 key_word_hash_code; /* 存放识别词汇对应的hashcode */
  uni_u8  nlu_content_str_index; /* 存放nlu映射表中的索引，实现多个识别词汇可对应同一个nlu，暂支持256条，如果不够换u16 */
  char    *hash_collision_orginal_str /* 类似Java String equal，当hash发生碰撞时，赋值为识别词汇，否则设置为NULL */;
} uni_nlu_content_mapping_t;

enum {
  eCMD_wakeup_uni,
  eCMD_exitUni,
  eCMD_text1,
  eCMD_text2,
  eCMD_text3,
  eCMD_text4,
  eCMD_text5,
  eCMD_text6,
  eCMD_text7,
  eCMD_text8,
  eCMD_text9,
  eCMD_text10,
  eCMD_text11,
  eCMD_text12,
  eCMD_text13,
  eCMD_text14,
  eCMD_text15,
  eCMD_text16,
  eCMD_text17,
  eCMD_text18,
  eCMD_text19,
  eCMD_text20,
  eCMD_text21,
  eCMD_text22,
  eCMD_text23,
  eCMD_text24,
  eCMD_text25,
  eCMD_text26,
  eCMD_text27,
  eCMD_text28,
  eCMD_text29,
  eCMD_text30,
  eCMD_text31,
  eCMD_text32,
  eCMD_text33,
  eCMD_text34,
  eCMD_text35,
  eCMD_text36,
  eCMD_text37,
  eCMD_text38,
  eCMD_text39,
  eCMD_text40,
  eCMD_text41,
  eCMD_text42,
  eCMD_text43,
  eCMD_text44,
  eCMD_text45,
  eCMD_text46,
  eCMD_text47,
  eCMD_text48,
  eCMD_text49,
  eCMD_text50,
  eCMD_text51,
  eCMD_text52,
  eCMD_text53,
  eCMD_text54,
  eCMD_text55,
  eCMD_text56,
  eCMD_text57,
  eCMD_text60,
  eCMD_text61,
  eCMD_text62,
  eCMD_text63,
  eCMD_text64,
  eCMD_text65,
  eCMD_text66,
  eCMD_text67,
  eCMD_text68,
  eCMD_text69,
  eCMD_text70,
};

const char* const g_nlu_content_str[] = {
[eCMD_wakeup_uni] = "{\"asr\":\"你好碧根碧根\",\"cmd\":\"wakeup_uni\",\"pcm\":\"[103]\"}",
[eCMD_exitUni] = "{\"asr\":\"再见\",\"cmd\":\"exitUni\",\"pcm\":\"[105]\"}",
[eCMD_text1] = "{\"asr\":\"启动睡眠一小时\",\"cmd\":\"text1\",\"pcm\":\"[106]\"}",
[eCMD_text2] = "{\"asr\":\"启动睡眠两小时\",\"cmd\":\"text2\",\"pcm\":\"[107]\"}",
[eCMD_text3] = "{\"asr\":\"启动睡眠三小时\",\"cmd\":\"text3\",\"pcm\":\"[108]\"}",
[eCMD_text4] = "{\"asr\":\"启动睡眠四小时\",\"cmd\":\"text4\",\"pcm\":\"[109]\"}",
[eCMD_text5] = "{\"asr\":\"启动睡眠五小时\",\"cmd\":\"text5\",\"pcm\":\"[110]\"}",
[eCMD_text6] = "{\"asr\":\"启动睡眠六小时\",\"cmd\":\"text6\",\"pcm\":\"[111]\"}",
[eCMD_text7] = "{\"asr\":\"启动睡眠七小时\",\"cmd\":\"text7\",\"pcm\":\"[112]\"}",
[eCMD_text8] = "{\"asr\":\"启动睡眠八小时\",\"cmd\":\"text8\",\"pcm\":\"[113]\"}",
[eCMD_text9] = "{\"asr\":\"启动睡眠九小时\",\"cmd\":\"text9\",\"pcm\":\"[114]\"}",
[eCMD_text10] = "{\"asr\":\"启动睡眠模式\",\"cmd\":\"text10\",\"pcm\":\"[]\"}",
[eCMD_text11] = "{\"asr\":\"关闭睡眠\",\"cmd\":\"text11\",\"pcm\":\"[]\"}",
[eCMD_text12] = "{\"asr\":\"十五度\",\"cmd\":\"text12\",\"pcm\":\"[]\"}",
[eCMD_text13] = "{\"asr\":\"十六度\",\"cmd\":\"text13\",\"pcm\":\"[]\"}",
[eCMD_text14] = "{\"asr\":\"十七度\",\"cmd\":\"text14\",\"pcm\":\"[]\"}",
[eCMD_text15] = "{\"asr\":\"十八度\",\"cmd\":\"text15\",\"pcm\":\"[]\"}",
[eCMD_text16] = "{\"asr\":\"十九度\",\"cmd\":\"text16\",\"pcm\":\"[]\"}",
[eCMD_text17] = "{\"asr\":\"二十度\",\"cmd\":\"text17\",\"pcm\":\"[]\"}",
[eCMD_text18] = "{\"asr\":\"二十一度\",\"cmd\":\"text18\",\"pcm\":\"[]\"}",
[eCMD_text19] = "{\"asr\":\"二十二度\",\"cmd\":\"text19\",\"pcm\":\"[]\"}",
[eCMD_text20] = "{\"asr\":\"二十三度\",\"cmd\":\"text20\",\"pcm\":\"[]\"}",
[eCMD_text21] = "{\"asr\":\"二十四度\",\"cmd\":\"text21\",\"pcm\":\"[]\"}",
[eCMD_text22] = "{\"asr\":\"二十五度\",\"cmd\":\"text22\",\"pcm\":\"[]\"}",
[eCMD_text23] = "{\"asr\":\"二十六度\",\"cmd\":\"text23\",\"pcm\":\"[]\"}",
[eCMD_text24] = "{\"asr\":\"二十七度\",\"cmd\":\"text24\",\"pcm\":\"[]\"}",
[eCMD_text25] = "{\"asr\":\"二十八度\",\"cmd\":\"text25\",\"pcm\":\"[]\"}",
[eCMD_text26] = "{\"asr\":\"二十九度\",\"cmd\":\"text26\",\"pcm\":\"[]\"}",
[eCMD_text27] = "{\"asr\":\"三十度\",\"cmd\":\"text27\",\"pcm\":\"[]\"}",
[eCMD_text28] = "{\"asr\":\"三十一度\",\"cmd\":\"text28\",\"pcm\":\"[]\"}",
[eCMD_text29] = "{\"asr\":\"三十二度\",\"cmd\":\"text29\",\"pcm\":\"[]\"}",
[eCMD_text30] = "{\"asr\":\"三十三度\",\"cmd\":\"text30\",\"pcm\":\"[]\"}",
[eCMD_text31] = "{\"asr\":\"三十四度\",\"cmd\":\"text31\",\"pcm\":\"[]\"}",
[eCMD_text32] = "{\"asr\":\"三十五度\",\"cmd\":\"text32\",\"pcm\":\"[]\"}",
[eCMD_text33] = "{\"asr\":\"三十六度\",\"cmd\":\"text33\",\"pcm\":\"[]\"}",
[eCMD_text34] = "{\"asr\":\"三十七度\",\"cmd\":\"text34\",\"pcm\":\"[]\"}",
[eCMD_text35] = "{\"asr\":\"三十八度\",\"cmd\":\"text35\",\"pcm\":\"[]\"}",
[eCMD_text36] = "{\"asr\":\"三十九度\",\"cmd\":\"text36\",\"pcm\":\"[]\"}",
[eCMD_text37] = "{\"asr\":\"四十度\",\"cmd\":\"text37\",\"pcm\":\"[]\"}",
[eCMD_text38] = "{\"asr\":\"四十一度\",\"cmd\":\"text38\",\"pcm\":\"[]\"}",
[eCMD_text39] = "{\"asr\":\"四十二度\",\"cmd\":\"text39\",\"pcm\":\"[]\"}",
[eCMD_text40] = "{\"asr\":\"四十三度\",\"cmd\":\"text40\",\"pcm\":\"[]\"}",
[eCMD_text41] = "{\"asr\":\"四十四度\",\"cmd\":\"text41\",\"pcm\":\"[]\"}",
[eCMD_text42] = "{\"asr\":\"四十五度\",\"cmd\":\"text42\",\"pcm\":\"[]\"}",
[eCMD_text43] = "{\"asr\":\"四十六度\",\"cmd\":\"text43\",\"pcm\":\"[]\"}",
[eCMD_text44] = "{\"asr\":\"四十七度\",\"cmd\":\"text44\",\"pcm\":\"[]\"}",
[eCMD_text45] = "{\"asr\":\"四十八度\",\"cmd\":\"text45\",\"pcm\":\"[]\"}",
[eCMD_text46] = "{\"asr\":\"四十九度\",\"cmd\":\"text46\",\"pcm\":\"[]\"}",
[eCMD_text47] = "{\"asr\":\"五十度\",\"cmd\":\"text47\",\"pcm\":\"[]\"}",
[eCMD_text48] = "{\"asr\":\"五十一度\",\"cmd\":\"text48\",\"pcm\":\"[]\"}",
[eCMD_text49] = "{\"asr\":\"五十二度\",\"cmd\":\"text49\",\"pcm\":\"[]\"}",
[eCMD_text50] = "{\"asr\":\"五十三度\",\"cmd\":\"text50\",\"pcm\":\"[]\"}",
[eCMD_text51] = "{\"asr\":\"五十四度\",\"cmd\":\"text51\",\"pcm\":\"[]\"}",
[eCMD_text52] = "{\"asr\":\"五十五度\",\"cmd\":\"text52\",\"pcm\":\"[]\"}",
[eCMD_text53] = "{\"asr\":\"五十六度\",\"cmd\":\"text53\",\"pcm\":\"[]\"}",
[eCMD_text54] = "{\"asr\":\"五十七度\",\"cmd\":\"text54\",\"pcm\":\"[]\"}",
[eCMD_text55] = "{\"asr\":\"五十八度\",\"cmd\":\"text55\",\"pcm\":\"[]\"}",
[eCMD_text56] = "{\"asr\":\"五十九度\",\"cmd\":\"text56\",\"pcm\":\"[]\"}",
[eCMD_text57] = "{\"asr\":\"六十度\",\"cmd\":\"text57\",\"pcm\":\"[]\"}",
[eCMD_text60] = "{\"asr\":\"启动激光\",\"cmd\":\"text60\",\"pcm\":\"[]\"}",
[eCMD_text61] = "{\"asr\":\"关闭激光\",\"cmd\":\"text61\",\"pcm\":\"[]\"}",
[eCMD_text62] = "{\"asr\":\"启动激光仪五赫兹\",\"cmd\":\"text62\",\"pcm\":\"[]\"}",
[eCMD_text63] = "{\"asr\":\"启动激光仪二十赫兹\",\"cmd\":\"text63\",\"pcm\":\"[]\"}",
[eCMD_text64] = "{\"asr\":\"启动激光仪连续\",\"cmd\":\"text64\",\"pcm\":\"[]\"}",
[eCMD_text65] = "{\"asr\":\"关闭激光仪\",\"cmd\":\"text65\",\"pcm\":\"[]\"}",
[eCMD_text66] = "{\"asr\":\"关闭所有功能\",\"cmd\":\"text66\",\"pcm\":\"[]\"}",
[eCMD_text67] = "{\"asr\":\"启动自动\",\"cmd\":\"text67\",\"pcm\":\"[]\"}",
[eCMD_text68] = "{\"asr\":\"关闭自动\",\"cmd\":\"text68\",\"pcm\":\"[]\"}",
[eCMD_text69] = "{\"asr\":\"启动加热\",\"cmd\":\"text69\",\"pcm\":\"[]\"}",
[eCMD_text70] = "{\"asr\":\"关闭加热\",\"cmd\":\"text70\",\"pcm\":\"[]\"}",
};

/*TODO perf sort by hashcode O(logN), now version O(N)*/
const uni_nlu_content_mapping_t g_nlu_content_mapping[] = {
  {476459388U/*你好碧根碧根*/, eCMD_wakeup_uni, NULL},
  {1978691302U/*碧根碧根*/, eCMD_wakeup_uni, NULL},
  {2389288886U/*再见*/, eCMD_exitUni, NULL},
  {817572206U/*启动睡眠一小时*/, eCMD_text1, NULL},
  {2702933650U/*启动睡眠两小时*/, eCMD_text2, NULL},
  {2068335160U/*启动睡眠二小时*/, eCMD_text2, NULL},
  {215170743U/*启动睡眠三小时*/, eCMD_text3, NULL},
  {2495988487U/*启动睡眠四小时*/, eCMD_text4, NULL},
  {578430016U/*启动睡眠五小时*/, eCMD_text5, NULL},
  {1604063855U/*启动睡眠六小时*/, eCMD_text6, NULL},
  {3480083249U/*启动睡眠七小时*/, eCMD_text7, NULL},
  {4124023789U/*启动睡眠八小时*/, eCMD_text8, NULL},
  {2528185514U/*启动睡眠九小时*/, eCMD_text9, NULL},
  {2922711160U/*启动睡眠模式*/, eCMD_text10, NULL},
  {2531587916U/*关闭睡眠*/, eCMD_text11, NULL},
  {265656716U/*十五度*/, eCMD_text12, NULL},
  {246084029U/*十六度*/, eCMD_text13, NULL},
  {263303227U/*十七度*/, eCMD_text14, NULL},
  {246024447U/*十八度*/, eCMD_text15, NULL},
  {265001314U/*十九度*/, eCMD_text16, NULL},
  {54308206U/*二十度*/, eCMD_text17, NULL},
  {2956679400U/*二十一度*/, eCMD_text18, NULL},
  {2958883934U/*二十二度*/, eCMD_text19, NULL},
  {2956947519U/*二十三度*/, eCMD_text20, NULL},
  {2959330799U/*二十四度*/, eCMD_text21, NULL},
  {2959122262U/*二十五度*/, eCMD_text22, NULL},
  {2939549575U/*二十六度*/, eCMD_text23, NULL},
  {2956768773U/*二十七度*/, eCMD_text24, NULL},
  {2939489993U/*二十八度*/, eCMD_text25, NULL},
  {2958466860U/*二十九度*/, eCMD_text26, NULL},
  {2496111085U/*三十度*/, eCMD_text27, NULL},
  {2845155337U/*三十一度*/, eCMD_text28, NULL},
  {2847359871U/*三十二度*/, eCMD_text29, NULL},
  {2845423456U/*三十三度*/, eCMD_text30, NULL},
  {2847806736U/*三十四度*/, eCMD_text31, NULL},
  {2847598199U/*三十五度*/, eCMD_text32, NULL},
  {2828025512U/*三十六度*/, eCMD_text33, NULL},
  {2845244710U/*三十七度*/, eCMD_text34, NULL},
  {2827965930U/*三十八度*/, eCMD_text35, NULL},
  {2846942797U/*三十九度*/, eCMD_text36, NULL},
  {481961533U/*四十度*/, eCMD_text37, NULL},
  {8976825U/*四十一度*/, eCMD_text38, NULL},
  {11181359U/*四十二度*/, eCMD_text39, NULL},
  {9244944U/*四十三度*/, eCMD_text40, NULL},
  {11628224U/*四十四度*/, eCMD_text41, NULL},
  {11419687U/*四十五度*/, eCMD_text42, NULL},
  {4286814296U/*四十六度*/, eCMD_text43, NULL},
  {9066198U/*四十七度*/, eCMD_text44, NULL},
  {4286754714U/*四十八度*/, eCMD_text45, NULL},
  {10764285U/*四十九度*/, eCMD_text46, NULL},
  {2859370358U/*五十度*/, eCMD_text47, NULL},
  {1384571360U/*五十一度*/, eCMD_text48, NULL},
  {1386775894U/*五十二度*/, eCMD_text49, NULL},
  {1384839479U/*五十三度*/, eCMD_text50, NULL},
  {1387222759U/*五十四度*/, eCMD_text51, NULL},
  {1387014222U/*五十五度*/, eCMD_text52, NULL},
  {1367441535U/*五十六度*/, eCMD_text53, NULL},
  {1384660733U/*五十七度*/, eCMD_text54, NULL},
  {1367381953U/*五十八度*/, eCMD_text55, NULL},
  {1386358820U/*五十九度*/, eCMD_text56, NULL},
  {3885004197U/*六十度*/, eCMD_text57, NULL},
  {2343432545U/*启动激光*/, eCMD_text60, NULL},
  {2533372718U/*关闭激光*/, eCMD_text61, NULL},
  {2966466759U/*启动激光仪五赫兹*/, eCMD_text62, NULL},
  {3980277168U/*启动激光仪二十赫兹*/, eCMD_text63, NULL},
  {2689216292U/*启动激光仪连续*/, eCMD_text64, NULL},
  {541541701U/*关闭激光仪*/, eCMD_text65, NULL},
  {3323497290U/*关闭所有功能*/, eCMD_text66, NULL},
  {2350225079U/*启动自动*/, eCMD_text67, NULL},
  {2540165252U/*关闭自动*/, eCMD_text68, NULL},
  {2266811989U/*启动加热*/, eCMD_text69, NULL},
  {2338191225U/*启动温热*/, eCMD_text69, NULL},
  {2456752162U/*关闭加热*/, eCMD_text70, NULL},
  {2528131398U/*关闭温热*/, eCMD_text70, NULL},
};

#endif
